import '@/assets/base.css'
import '@/assets/common.scss'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

// pinia数据持久化插件
import piniapluginpersistedstate from 'pinia-plugin-persistedstate'

// 配置element-ui使用中文
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'


const pinia = createPinia()
pinia.use(piniapluginpersistedstate)

const app = createApp(App)

app.use(ElementPlus, {
    locale: zhCn,
})

app.use(pinia)
app.use(router)

app.mount('#app')
